﻿using _10.装修模式.Base;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _10.装修模式.Models
{
    public sealed class Child : Decorater
    {
        public Child(Person person) : base(person)
        {
            this.Name = person.Name;
        }

        public override void Invoke()
        {
            base.Invoke();

            Console.WriteLine($"{this.Name}7岁了，可以读小学了");
        }
    }
}
